﻿using System.Security.Cryptography;

namespace Basic.Base.Encryption;

public class BasicMD5
{
    public static string MD5Encryption(string rawStr)
    {
        using MD5 md5 = MD5.Create();
        return Convert.ToBase64String(md5.ComputeHash(Encoding.UTF8.GetBytes(rawStr)));
    }
}
